<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<c:forEach items="${users}" var="user" varStatus="idx">
    <c:choose>
        <c:when test="${idx.index < 3}">
            <li class="rank-list top3">
                <div class="rank_circle_top">${idx.index+1}</div>
                <div class="rank_name">${user.userName}</div>
                <div class="rank_grade">${user.userContribution}</div>
            </li>
        </c:when>
        <c:otherwise>
            <li class="rank-list">
                <div class="rank_circle_top">${idx.index+1}</div>
                <div class="rank_name">${user.userName}</div>
                <div class="rank_grade">${user.userContribution}</div>
            </li>
        </c:otherwise>
    </c:choose>
</c:forEach>